/*
 * @Author: 杰编程 2306248989@qq.com
 * @Date: 2023-07-29 19:25:30
 * @LastEditors: 杰编程 2306248989@qq.com
 * @LastEditTime: 2023-07-29 23:51:18
 * @FilePath: /lesson22/pthreadPool/main.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#include"ThreadPool_V4.hpp"
#include<memory>
#include"task.hpp"
using namespace std;


int main()
{

    while(true)
    {
        int x, y;
        char op;
        std::cout << "please Enter x> ";
        std::cin >> x;
        std::cout << "please Enter y> ";
        std::cin >> y;
        std::cout << "please Enter op(+-*/%)> ";
        std::cin >> op;
        ThreadPool<Task>::getinstance()->pushTask(Task(x,y,op));
    }

    return 0;
}